package com.xxx.config.exception;

/**
 * 通用错误信息枚举类
 *
 * @version 1.0
 * @since 1.0
 */
public enum GenExceptCode implements ExceptionCode {
    Request_Param("请求参数错误"),
    Verify_Code("账户或密码不正确"),
    Token_Invalid("令牌非法"),
    System_Error("系统出错"),
    Not_Supported("暂不支持"),
    Not_Found("资源不存在"),
    User_Invalid("用户非法"),
    Operation_Denial("操作被拒");

    private final String msg;

    GenExceptCode(String _msg) {
        this.msg = _msg;
    }

    @Override
    public String getCode() {
        return this.name();
    }

    @Override
    public String getMsg() {
        return this.msg;
    }
}
